home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-12-08 | 971 b | 29 lines | [TEXT/GEOL] |
- Item 6606979 7-Dec-89 08:35
-
- From: ALGER Alger, Jeff,VCA
-
- To: D1950 CSG, Don Phillips,PRT
-
- cc: MACAPP.TECH$ MacApp Technical
-
- Sub: Re: Failures & Initialization
-
- Jo-Ann,
-
- Geoff's observations are accurate - your code is correct as written for failure
- handling. I thought perhaps that your confusion might stem from a common
- misperception when first using failure handlers: in your code, if IObject2
- fails, the line
-
- SELF.ffObjRef := tmpObjRef;
-
- will never be reached. Instead, your failure handler for IObject1 will be
- called immediately after the failure handler for IObject2, which will then
- percolate upwards (unless you take pains to do otherwise) until control can be
- once again turned over to the idle loop of MacApp. The invalid handle stored
- in tmpObjRef will never be used to initialize ffObjRef.
-
- Jeff Alger
- KPMG Peat Marwick
-
-